package com.newlink.building.userinfo.mvp.model

import com.newlink.building.common_base.base.BaseModel
import com.newlink.building.common_base.http.Base_RetrofitHelper
import com.newlink.building.common_base.model.bean.FamilyListData
import com.newlink.building.common_base.model.bean.HttpResult
import com.newlink.building.userinfo.mvp.contract.Module_UserInfo_FamilyManagementDetailAddFailQRCodeContract
import io.reactivex.Observable

/**
 * @author wangyang
 * @date 2022/10/12
 * @description 我的——家庭管理——添加失败状态的详情页（二维码）页面的Model
 */
class Module_UserInfo_FamilyManagementDetailAddFailQRCodeModel : BaseModel(),
    Module_UserInfo_FamilyManagementDetailAddFailQRCodeContract.Model {

    override fun getData(phone: String): Observable<HttpResult<FamilyListData>> {
        return Base_RetrofitHelper.service.getFamilyManagementList(phone, 1, Int.MAX_VALUE)
    }
}